/**
 * Jaxson ajax
 *
 * Copyright Remedy Interactive, licensed under Apache version 2 license:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * This notice must remain in all java source files.
 */

package org.jaxson.struts.logging;


import org.jaxson.struts.reverseAjax.ReverseAjaxEvent;

import flexjson.JSON;

/**
 * A struts bean representing changes to the log configuration.
 * 
 * @author Joe Maisel
 */
public class LogConfigurationEvent extends ReverseAjaxEvent
{
	private static final long serialVersionUID = 198475638374L;

	public static final String EVENT_NAME = LogConfigurationEvent.class.getSimpleName();

	private String loggerName;
	private Boolean applyGlobally = false;
	private Boolean enableRemote = false;
	private int level;
	private int batchSize;

	public LogConfigurationEvent ()
	{
		super.setName( EVENT_NAME );
	}

	/**
	 * @return the loggerName
	 */
	@JSON
	public String getLoggerName()
	{
		return loggerName;
	}

	/**
	 * @param loggerName
	 *            the loggerName to set
	 */
	public void setLoggerName( String loggerName )
	{
		this.loggerName = loggerName;
	}

	/**
	 * @return the applyGlobally
	 */
	@JSON
	public Boolean getApplyGlobally()
	{
		return applyGlobally;
	}

	/**
	 * @param applyGlobally
	 *            the applyGlobally to set
	 */
	public void setApplyGlobally( Boolean applyToAll )
	{
		this.applyGlobally = applyToAll;
	}

	/**
	 * @return the enableRemote
	 */
	@JSON
	public Boolean getEnableRemote()
	{
		return enableRemote;
	}

	/**
	 * @param enableRemote
	 *            the enableRemote to set
	 */
	public void setEnableRemote( Boolean enableRemote )
	{
		this.enableRemote = enableRemote;
	}

	/**
	 * @return the level
	 */
	@JSON
	public int getLevel()
	{
		return level;
	}

	/**
	 * @param level
	 *            the level to set
	 */
	public void setLevel( int level )
	{
		this.level = level;
	}

	/**
	 * @return the batchSize
	 */
	@JSON
	public int getBatchSize()
	{
		return batchSize;
	}

	/**
	 * @param batchSize
	 *            the batchSize to set
	 */
	public void setBatchSize( int batchSize )
	{
		this.batchSize = batchSize;
	}
}
